<?php

use Illuminate\Database\Seeder;

class RolePermissionSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $sum = \App\Entities\Permission::all()->count();
        for ($i = 1; $i <= $sum; $i++){
            \App\Entities\PermissionRole::create(['role_id' => 1, 'permission_id' => $i]);
        }
    }
}
